#ifndef DECOMPONENT_CAMERA_H
#define DECOMPONENT_CAMERA_H

#include "glm.hpp"
#include <gtc/matrix_transform.hpp>
#include "AComponent.h"

class Camera : public AComponent
{
private:
	static Camera* mCurrentCam;

	glm::mat4 mProjection;

public:
	Camera(RefPtr<GameNode> pNode);

	void Update();

	glm::mat4 getMatrix() { return mProjection; }

	static Camera* getMainCamera(){return mCurrentCam;}
};

#endif